import unittest
from test_cases import test_demo1, test_demo2

# loader
# loader = unittest.defaultTestLoader.discover('./test_cases', pattern='*demo*')

loader = unittest.defaultTestLoader.discover('./test_cases', pattern='test*')

# suite 可以不用套件,用的作用是进行组装
suite = unittest.TestSuite()
tests = [
    test_demo1.TestDemo1TestCase('test1'),
    test_demo2.TestDemo2TestCase('testa'),
]
suite.addTests(tests)
# runner
runner = unittest.TextTestRunner(verbosity=2)
runner.run(suite)
